﻿using Abp.Domain.Entities;
using Abp.Domain.Entities.Auditing;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace CPPProject.CPP
{
    /// <summary>
    /// 合同明细
    /// </summary>
    [Table("CPPContractDetail")]
    public class CPPContractDetail : Entity<Guid>, IHasCreationTime
    {
        public DateTime CreationTime { get; set; }
        /// <summary>
        /// 合同编号
        /// </summary>
        [Required]
        [MaxLength(50)]
        public string ContractNum { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        public decimal Qty { get; set; }
        /// <summary>
        /// 价格
        /// </summary>
        public decimal Price { get; set; }
        /// <summary>
        /// 资产编码
        /// </summary>
        [Required]
        [MaxLength(50)]
        public string PartNum { get; set; }
        /// <summary>
        /// 资产名称
        /// </summary>
        [Required]
        [MaxLength(500)]
        public string Name { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
    }
}
